/**
 * Created by tom on 2017/5/7.
 */
var mongoose = require('mongoose')
var db = require('../../server/db')

var modelName = 'chat'

var schema = new mongoose.Schema({
    handler: {
        id: {type: mongoose.Schema.ObjectId},
        name: {type: String}
    },
    content: {type: String, request: true}
}, {timestamps: true})

var model = db.model(modelName, schema)


module.exports = model